import React from "react";
import { ApproveTimeLine, useApproveTimeLineQuery } from "../common";

export const BizDetail = () => {
  const { data, setLastItem } = useApproveTimeLineQuery({
    busId: "309843570364297263",
    headers: {
      "depend-uri": "/api/scm/v1/contract/{id}",
      "depend-method": "GET",
    },
    url: "/api/scm/v1/contract/cancel/approve/query",
  });

  return (
    <ApproveTimeLine
      data={data}
      itemClickHandle={(memo) => {
        setLastItem(memo);
      }}
      titleStart="合同审批"
    />
  );
};
